import App from './App'

// #ifdef H5
// js代码块
// #endif



//使用组件
import uView from 'uview-ui'
import ws from '@/utils/ws.js'

import Vue from 'vue'




import {
	request
} from '@/utils/request1.js'
import * as API from '@/api/index.js'


// 1. 导入 store 的实例对象
import store from './store/store.js'

import {
	globalMixin
} from "@/mixin.js"

import $pub from 'static/js/pub.js'

import env from '@/utils/env.js';
import { v4 as uuidv4 } from 'uuid';


let staticImg = 'http://storage.dezhoucloud.com/'

/* 原型 */
Vue.prototype.request = request
Vue.prototype.$API = API
Vue.prototype.$url = env.baseUrl;
Vue.prototype.$img = 'http://192.168.3.90'
/* 静态 */
Vue.prototype.$staticImg = staticImg

//跳转
Vue.prototype.$pub = $pub;
Vue.prototype.$ws = ws
Vue.prototype.$shareImg = null
Vue.prototype.$uuid = uuidv4;

// 插件
Vue.mixin(globalMixin)
Vue.use(uView)

// import viewNavbar from '@/components/navBar.vue';
import mysearch from '@/components/mysearch.vue';
import card from '@/components/card/card.vue';
/* 注册 */
// Vue.component('view-navbar', viewNavbar); // 注册组件


Vue.component('view-mysearch', mysearch); // 注册组件
Vue.component('card', card); // 注册组件



Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	// 2. 将 store 挂载到 Vue 实例上
	store,
	...App
})
app.$mount()





// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif